package com.bringway.global.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bringway.global.dao.UserDao;
import com.bringway.global.domain.User;
import com.bringway.global.service.UserService;

/*
* @author 作者 xuef
* @version 创建时间：2015年9月14日 下午3:55:14
* 类说明
*/
@Service
@Transactional
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserDao userDao;

	@Override
	public User login(String gyh, String password) throws Exception {
		return userDao.login(gyh,password);
	}

	@Override
	public boolean isHasAuthrity(String user_realId, String user_roleId, String pageId) {
		return userDao.isHasAuthrity( user_realId, user_roleId, pageId);
	}

}
